import java.util.Scanner;


public class Main
{

   /**
    * @param args
    */
   public static void main(String[] args)
   {
      CheckersBoard game = new CheckersBoard();
      Scanner scanner = new Scanner(System.in);
      
      System.out.println(game.Print());

      String text = scanner.nextLine();

      while(!text.equalsIgnoreCase("exit"))
      {
         
         String[] array = text.split(" ");
         
         Position prv = new Position(Integer.valueOf(array[0]), Integer.valueOf(array[1]));
         Position nxt = new Position(Integer.valueOf(array[2]), Integer.valueOf(array[3]));
         
         game.move(prv, nxt);       
         System.out.println(game.Print());
         
         text = scanner.nextLine();
      }
      
      

   }

}
